package com.lgcns.mybatis;

import java.util.ArrayList;
import org.apache.ibatis.annotations.Param;

import com.lgcns.user.User;

public interface UserMapper {
	
	public int insert(User user);
	
	public User login(User user);
	
	public int modify(User user);
	
	public void changePasswd(User user);

	public void bye(User user);

	public ArrayList<User> getAllUsers();
	
	public User getUserByEmail(String email);
	
	public ArrayList<User> getUsersByKeyword(String keyword);

	public void insertAuthority(@Param("email") String email,@Param("authority") String authority);
}